package com.yj.jason.jsondemo;

import android.app.Application;

import com.yj.jason.baselibrary.fixbug.FixDexManager;
import com.yj.jason.baselibrary.http.HttpUtils;
import com.yj.jason.baselibrary.utils.SharePreferenceUtil;
import com.yj.jason.moudlelibrary.http.OkHttpEngine;
import com.yj.jason.moudlelibrary.skin.SkinManager;

public class MyApplication extends Application{

    @Override
    public void onCreate() {
        super.onCreate();
        SkinManager.getInstance().init(this);

        HttpUtils.init(new OkHttpEngine());

        SharePreferenceUtil.getInstance().init(this);

        try {
            FixDexManager fixDexManager=new FixDexManager(this);
            fixDexManager.loadFixDex();
        } catch (Exception e) {
            e.printStackTrace();
        }

    }
}
